/*
 * Copyright (C) 2011 Fhpt All Rights Reserved.
 * 
 * WebUtil.java
 */
package com.pay.sms;

import javax.servlet.http.HttpServletRequest;

/**
 * [文件名称]<br>
 * WebUtil <br>
 * <br>
 * [文件描述]<br>
 * 内容摘要.<br>
 * <br>
 * [修改记录]<br>
 * 2012-5-19 ver1.00 创建 Administrator<br>
 * 
 * @author Administrator
 * @version 1.00
 */
public class WebUtil {

	public static Long useId(HttpServletRequest request) {
		return (Long)request.getSession().getAttribute("user.id");
	}
	
	public static String getUserName(HttpServletRequest request)
	{
		return (String)request.getSession().getAttribute("username");
	} 
	
}
